~function(){
const importMap=`{
  "imports": {
    "compiler":"./js/lib/compiler.esm.min.js",
    "vue":"./js/lib/vue3#(isDev?"":".prod").js",
    "HeyUI":"./js/lib/heyui.esm.min.js",
    "heyui":"./js/lib/heyui.esm.min.js",
    "store":"./js/store.js",
    "framework":"./js/framework.js",
    "vue-router":"./js/lib/vue-router.4.2.4.min.js",
    "pinia":"./js/lib/pinia.2.1.6.min.js",
    "@vue/devtools-api":"./js/lib/vue-devtools-api.min.js",
    "axios":"./js/lib/axios.min.js",
    "sortablejs":"./js/lib/sortable.min.js",
    "vuedraggable":"./js/lib/vuedraggable.min.js",
    "xlsx":"./js/lib/xlsx.min.js",
    "qrcode-vue3":"./js/lib/qrcode-vue3.min.js",
    "amaploader":"./js/lib/amaploader.js",
    "wangEditor":"./js/lib/wangEditor.min.js",
    "echarts":"./js/lib/echarts.min.js",
    "chart":"./js/lib/chart.min.js",
    "crypto":"./js/lib/crypto.min.js",
    "@nutui/nutui":"./js/nutui/nutui.js",
    "@nutui/icons-vue":"./js/nutui/nutui-icons-vue.js",
    "element-plus":"./js/lib/element-plus.2.4.4.min.js",
    "@element-plus/icons-vue":"./js/lib/element-plus-icons-vue.min.js",
    "require":"./js/lib/require.min.js",
    "i18n":"./js/i18n.js"
  }
}`;
    let sc= document.getElementsByTagName('script');
    let lastSc=sc.item(sc.length-1)
    window.baseUrl=lastSc.src.replace(/\/system\/config$/,"")
    const importShimMap=document.createElement("script")
    importShimMap.type='importmap-shim'
    importShimMap.innerHTML=importMap
    document.head.appendChild(importShimMap)
}()

/**#if(configs)====configs=====**#end/
 window._configs=#(configs)
 document.title=_configs["PlatformConfig.SystemName"]
 document.logo=_configs["PlatformConfig.LogoUrl"]
 __VUE_PROD_DEVTOOLS__=#(isDev)||_configs["PlatformConfig.Debug"]=="true"
 /**===================**/

/*#if(expire)*/
if (!location.pathname.endsWith("license.html")) {
    addEventListener('appCreated', (e) => {
        let info = {
            type: 'warn',
            content: `#(expire)`,
            timeout: 0,
            buttons: [
                {
                    name: '忽略',
                    type: 'cancel'
                },
                {
                    name: '去看看',
                    style: 'primary',
                    type: 'confirm'
                }
            ],
            events: {
                confirm: e => {
                    e.close();
                    location.href = 'license.html'
                },
                cancel: e => {
                    e.close();
                }
            }
        }
        importShim('heyui').then(r=>{
            r.notice(info)
        })
       // HeyUI.notice(info)
    })
}
/*#end*/
/**#if(extend)====extend=====**#end/
#(extend)
/**/
